import QtQuick 1.1
import com.nokia.symbian 1.1

SelectionDialog{
    id:root
    signal penCapStyle(int capStyle)

    Component.onCompleted: {
        capStyleModel.append({modelData:qsTr("Square"), capStyle: Qt.SquareCap})
        capStyleModel.append({modelData:qsTr("Flat"), capStyle: Qt.FlatCap})
        capStyleModel.append({modelData:qsTr("Round"), capStyle: Qt.RoundCap})
    }

    titleText: qsTr("Pen cap style")
    model: ListModel{
        id: capStyleModel
    }

    onSelectedIndexChanged: {
        root.penCapStyle(model.get(selectedIndex).capStyle)
    }
}
